package ru.fivestarter.entities.leonardo;

import java.io.Serializable;
import ru.fivestarter.entities.diary.*;
import java.util.Set;
import java.lang.String;
import javax.persistence.*;

/**
 * Entity implementation class for Entity: UsersLeo
 *
 */
@Entity
@Table(name="USERS_LEO", schema="leonardo")
@NamedQueries({
	@NamedQuery(name="UsersLeo.findUsersLeoForLogin", query="SELECT ul FROM UsersLeo ul WHERE ul.login= :log")
})
public class UsersLeo implements Serializable {

	   
	@Id
	private String login;
	@Column(nullable=false)
	private String pas;
	private static final long serialVersionUID = 1L;
	@OneToMany(mappedBy="user", cascade=CascadeType.ALL)
	private Set<GoalMonth> gMonth;
	@OneToMany(mappedBy="user", cascade=CascadeType.ALL)
	private Set<Goals> goals;
	@OneToMany(mappedBy="user", cascade=CascadeType.ALL)
	private Set<GoalWeek> gWeek;
	@OneToMany(mappedBy="user", cascade=CascadeType.ALL)
	private Set<GoalYear> gYear; 

	public UsersLeo() {
		super();
	}   
	public String getLogin() {
		return this.login;
	}

	public void setLogin(String login) {
		this.login = login;
	}   
	public String getPas() {
		return pas;
	}
	public void setPas(String pas) {
		this.pas = pas;
	}
	public Set<GoalMonth> getgMonth() {
		return gMonth;
	}
	public void setgMonth(Set<GoalMonth> gMonth) {
		this.gMonth = gMonth;
	}
	public Set<Goals> getGoals() {
		return goals;
	}
	public void setGoals(Set<Goals> goals) {
		this.goals = goals;
	}
	public Set<GoalWeek> getgWeek() {
		return gWeek;
	}
	public void setgWeek(Set<GoalWeek> gWeek) {
		this.gWeek = gWeek;
	}
	public Set<GoalYear> getgYear() {
		return gYear;
	}
	public void setgYear(Set<GoalYear> gYear) {
		this.gYear = gYear;
	}
	
   
}
